package router

import (
	"github.com/gogf/gf/v2/net/ghttp"
	"websocket/internal/controller"
	"websocket/internal/service"
)

func bindCommonController(group *ghttp.RouterGroup) {
	group.Group("/common", func(group *ghttp.RouterGroup) {
		group.Middleware(service.Middleware().Auth)
		group.GET("status-enum", controller.Common.StatusEnum)
		group.GET("server-date", controller.Common.ServerDate)
	})
	group.Group("/common", func(group *ghttp.RouterGroup) {
		group.GET("version", controller.Common.Version)
	})
}
